export const IMGURL = 'https://img.qumoyugo.com'

const PLATFORM =
  import.meta.env.VITE_APP_BASE_URL

const URL = {
  sprint: 'http://localhost:8614',
  pre: 'https://j.qumoyugo.net',
  prod: 'https://j.qumoyugo.com'
}

const ACTIVITY = {
  sprint: 'https://mp.qumoyugo.cn',
  pre: 'https://mp.qumoyugo.net',
  prod: 'https://mp.qumoyugo.com'
}
const BASEURL = URL[PLATFORM]
const JUMPURL = ACTIVITY[PLATFORM]

const TOKEN = 'auth._token.local'
const OTHERUSERID = 'otherUserId'

// 搜索存储
const SCIENCE_SEARCH_LIFE = 'science_search_life'
const SCIENCE_SEARCH_FOOD = 'science_search_food'
// 存储是否来源于app
const PLATEFORM_APP = 'plateform_app'
// 储存页面的cookie转为tokenstorage
const APP_STORAGE_COOKIE = 'app_store_token'
const PLATFORM_APP = 'platform'
const VERSION_APP = 'version_app'

// 刘海高度
const STATUS_BAR_HEIGHT = 'statusBarHeight'

// 宠物信息存储
const SAVE_PETS_DETAIL = 'savePetsDetail'
// 添加宠物时宠物品种信息 eg: { breedId: 1, breedName: '英短' }
const ADD_PETS_CATEGORY = 'addPetsCategory'
// 保存默认头像
const SAVE_DEFAULT_AVATAR = 'save_default_avatar'
const SAVE_COMMON_IMAGE = 'save_common_image'

// 验证码状态
const VERIFY_CODE = {
  START: 0, // 开始
  GETTING: 1, // 获取ing
  AGAIN: 2 // 重新获取
}

export {
  BASEURL,
  JUMPURL,
  TOKEN,
  OTHERUSERID,
  SCIENCE_SEARCH_LIFE,
  SCIENCE_SEARCH_FOOD,
  PLATEFORM_APP,
  APP_STORAGE_COOKIE,
  PLATFORM_APP,
  VERSION_APP,
  VERIFY_CODE,
  STATUS_BAR_HEIGHT,
  SAVE_PETS_DETAIL,
  ADD_PETS_CATEGORY,
  SAVE_DEFAULT_AVATAR,
  SAVE_COMMON_IMAGE
}
